package com.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * input & output validate
 * @author wlgqo
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface IOValidate {
	/**
	 * set value for input param or outputparam;
	 * @return
	 */
	public String value() default "";
	/**
	 * check input param or output param is or not null,if value is true ,io can be null or not null;
	 * @return
	 */
	public boolean isNull() default true;
	/**
	 *  input param or output param format 
	 * @return
	 */
	public String format() default "";
}
